/* eslint-disable no-unused-vars */
/**
 * ctp模块菜单设置
 */
var ctpMenuOption = {
  // 首页配置
  home: {
    // 默认激活的一级菜单
    activeName: 'first',
    // 默认重定向的首页
    redirectName: 'personal',
    // 菜单配置
    tabs: [
      {
        label: '智能推荐',
        name: 'ten',
        show: false,
        main: {
          type: 'component',
          id: '',
          src: '',
          defaultActive: ''
        },
        children: []
      },
      {
        label: '工单',
        name: 'gongdan',
        show: true,
        main: {},
        children: []
      },
      {
        label: '综合业务',
        name: 'first',
        show: false,
        main: {
          type: 'router-view',
          id: '',
          src: '',
          defaultActive: '/personal',
        },
        children: [
          {
            label: '个人业务',
            path: '/personal'
          }, 
          // {
          //   label: '公司业务',
          //   path: '/company'
          // }, {
          //   label: '金融信息',
          //   path: '/publicInfo'
          // }, {
          //   label: '挂失',
          //   path: '/reportLoss'
          // }, {
          //   label: '尊老卡',
          //   path: '/respectIndex'
          // }
        ]
      },
      {
        label: '信用卡业务',
        name: 'second',
        show: false,
        main: {},
        children: []
      },
      {
        label: '视频业务',
        name: 'third',
        show: false,
        main: {
          type: 'router-view',
          id: 'videoServices',
          src: '',
          defaultActive: '/cardActive',
          defaultPhoneBankActive: '/phoneBankCardActive'
        },
        children: [
          {
            label: '卡激活',
            path: '/cardActive',
            isHideFlag: false
          },
          {
            label: '不动户恢复',
            path: '/realEstateRecovery'
          },
          {
            label: '账户限制解除',
            path: '/accRestrictLift'
          },
          {
            label: '对公开户',
            path: '/forOpenHouse',
            isHideFlag: false
          },
          {
            label: '卡激活',
            path: '/phoneBankCardActive',
            isHideFlag: true
          },
          {
            label: '对公开户',
            path: '/phoneBankForOpenHouse',
            isHideFlag: true
          },
          {
            label: '风险测评',
            path: '/phoneBankRiskAssessment'
          },
        ]
      },
      {
        label: '电子工单',
        name: 'four',
        show: false,
        main: {
          type: 'component'
        },
        children: []
      },
      {
        label: '电子工单',
        name: 'five',
        show: false,
        main: {
          type: 'iframe',
          id: 'ets-create-frame',
          src: function () {
            return window.CONFIG.ets.createIndexPage
          }
        },
        children: []
      },
      {
        label: '智能助手',
        name: 'six',
        show: false,
        main: {
          type: 'iframe',
          id: 'intel-assis-frame',
          src: function () {
            return window.CONFIG.intelligentAssisTant.createIndexPage
          }
        },
        children: []
      },
      {
        label: '网页协同',
        name: 'seven',
        show: false,
        main: {},
        children: []
      },
      {
        label: '人脸识别',
        name: 'eight',
        show: false,
        main: {
          type: 'iframe',
          id: 'face-recognition-frame',
          src: function () {
            return window.CONFIG.faceRecognition.createIndexPage
          }
        },
        children: []
      },
      {
        label: '知识库',
        name: 'nine',
        show: false,
        main: {
          type: 'iframe',
          id: 'kbp-frame',
          src: function () {
            return window.CONFIG.kbp.createIndexPage + '?access_token=' + Constants.Agent.access_token
          }
        },
        children: []
      },
      {
        label: '知识库',
        name: 'eleven',
        show: false,
        main: {
          type: 'router-view',
          id: 'kbpRouter',
          src: '',
          defaultActive: 'kbp'
        },
        children: []
      },
      {
        label: '电核结果通知',
        name: 'twelve',
        show: true,
        main: {
          type: 'router-view',
          id: 'dhRouter',
          src: '',
          defaultActive: 'dhResultNotice'
        },
        children: []
      },
    ]
  },
  // 路由配置
  router: {

  }
}
